<?php
/**
 * Created by PhpStorm.
 * User: fly
 * Date: 2018\1\16 0016
 * Time: 13:30
 */

namespace common\models;

use yii\elasticsearch\ActiveRecord;
class ES extends ActiveRecord{
    public $_index;
    public $_type;
    public function attributes()
    {
        return ["package_title","realname","name","project_title","manager","contact"];
    }
    public static function index()
    {
        return ["package","user","auth_item","project","project_team","project_transfer"];
    }

    public static function type()
    {
        return ["user","package","auth_item","project","project_team","project_transfer"];
    }

}